﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'roleFindAll')
	BEGIN
		DROP  Procedure  roleFindAll
	END
GO

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[roleFindAll]
	@app_id INT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    SELECT * 
	FROM lit_rol 
	WHERE lit_aplicacion_id = @app_id
	ORDER BY lit_rol_nombre;
	
END
GO